package itbour.onetouchshow.utils;

import com.lsjr.bean.Encrypt;
import com.lsjr.net.AppNetConfig;
import com.lsjr.net.RequestParams;

import java.util.HashMap;

/**
 * Created by onetouch on 2017/12/1.
 */

public class EncryptUtils {


    //拆分 传入一个HashMap 返回一个Params
    //webview的参数 区别和常规连接的区别仅仅在priority为4
    public static RequestParams transEncrytionWebViewParams(HashMap<String, ? extends Object> paramsMap, String destination) {
        RequestParams hashMap = Encrypt.transWebEncrytionParams(paramsMap, destination);
        return hashMap;
    }

    //把params转化为url
    public static String getPrintHtmlUrl(RequestParams requestParams) {
        L_.e("getPrintHtmlUrl   " + requestParams.toString());
        String getWebUrl = AppNetConfig.getInstance().getMbuider().getWebUrl();
        return (getWebUrl + requestParams.toString());
    }

}
